#!/bin/bash
if [ $# != 3 ];then
	echo "Usage: run.sh <processNumber> <threadNUmber> <time(s)>"
	exit 1;
fi
rm nohup.out.*
for i in $(seq $1);do
	j=`expr $i % 8`
	nohup java -jar client.jar conf.properties.$j $2 $3 host$i > nohup.out.$i 2>&1 &
	sleep 1
done
